galileo_sdk.sdk.stations.StationsSdk.invite_to_station¶
- StationsSdk.invite_to_station(station_id, user_ids, role_id)[source]¶
Invite user(s) to a station
- Parameters
station_id – str
user_ids – List[str]: list of user’s ids to invite
role_id – str: role id to assign to user
- Returns
boolean
- Example:
>>> station_id = "my-station-id" >>> user_ids = ["user-id-1", "user-id-2"] >>> # Get the role id of the launcher role >>> role_id = galileo.stations.get_station_roles(station_id, names=["launcher"])[0].id >>> galileo.stations.invite_to_station(station_id, user_ids=user_ids, role_id=role_id)